1
Sir_Saeed
Some codes disappear in some pages!
  • 2010/3/27 15:36

  • Sir_Saeed

  • Just popping in

  • Posts: 41

  • Since: 2007/10/10


Hello there

First of all I should confess my knowledge of php is not that great. So pardon me for possible low-level mistakes/questions.

I've had added these codes to theme.html:

<{php}>
global 
$xoopsTpl;

$team_name '';
$profile_handler =& xoops_getmodulehandler('profile''profile');
$profile $profile_handler->get($uid); 

if (
is_object($profile)) {
$team_name $profile->getVar('team_name');
$team_id  $profile->getVar('team_id');
$team_div  $profile->getVar('team_div');
$team_league  $profile->getVar('team_league');
}
$xoopsTpl->assign('team_name'$team_name);
$xoopsTpl->assign('team_id' $team_id);
$xoopsTpl->assign('team_div' $team_div);
$xoopsTpl->assign('team_league' $team_league);

$div '';

if (
$team_div == 1
{
$div 'League Bartar';
$team_league 0;
}
elseif (
$team_div == 2){
$div 'II';}
elseif (
$team_div == 3){
$div 'III';}
elseif (
$team_div == 4){
$div 'IV';}
elseif (
$team_div == 5){
$div 'V';}
else{
$div 'VI';}

$xoopsTpl->assign('div' $div);
<{/
php}>


and I call them as:

<{$xoops_uname}> | <{$team_name}> | <{$div}>.<{$team_league}>


In local, these triple codes are seen everywhere, but on the actual site, in some modules' pages, like news or contact, one or two of the last ones are missing.

I have no idea what's happened there, so may I ask for any guidance?

Cheers



2
Sir_Saeed
Re: Some users registered with a same username!
  • 2009/11/18 10:58

  • Sir_Saeed

  • Just popping in

  • Posts: 41

  • Since: 2007/10/10


Well emails are from yahoo and as any user creation needs an email address to activate, I guess this work spend a lot of time for ppl to do than some seconds for me to undone.

So, the real point I'm after is the root of this problem. What if a robot can do this job? What if there's a way someone can do this with a same email? Then it will be too late to use pressure or sth.



3
Sir_Saeed
Re: Calling custom fields in user profiles
  • 2009/11/18 10:50

  • Sir_Saeed

  • Just popping in

  • Posts: 41

  • Since: 2007/10/10


How can it be possible to use such thing in theme?
Like as in this site which a permanent welcome message is always on the top of all pages, you just want to expand the welcome message with an extra information like home page, avatar, and so on.

I tested the codes in theme.html but it didn't work. Although it would be great if I can use these information in Forums poster information too.



4
Sir_Saeed
Re: Some users registered with a same username!
  • 2009/11/18 10:25

  • Sir_Saeed

  • Just popping in

  • Posts: 41

  • Since: 2007/10/10


Thank you pals. The story is someone registered into site and started activating, after a while, he had a fight with another member and threatened him to send bad message by his id. This guy told me about it and I answered it's impossible. Today he sent me a private message and said that there are two other users with his exact information, including username.

So my conclusion is that it's not an accident, and therefore there is some hole somewhere.

And I know who has created this new users, all ip-s are same either. I deleted the new ones, and Protector has banned the ip already, and I do have some experiences with phpMyAdmin, but anyone has any idea what's happened? and what's the source of this problem?

I wanna make sure no one can do similar thing anymore.



5
Sir_Saeed
Re: users real name in themefile
  • 2009/11/18 8:18

  • Sir_Saeed

  • Just popping in

  • Posts: 41

  • Since: 2007/10/10


How can we make a query to use in theme? Especially about custom fields created by profile module.



6
Sir_Saeed
Some users registered with a same username!
  • 2009/11/18 8:15

  • Sir_Saeed

  • Just popping in

  • Posts: 41

  • Since: 2007/10/10


I think that should be a hack! There are three users in my site with a same username!
I checked the Protector and saw that the ip is bad-listed, but I'm not sure if it's enough, or I have to do some extra works to avoid it in future.

May somebody help me, please?



7
Sir_Saeed
Using PROFILE module fields in theme
  • 2009/11/13 13:18

  • Sir_Saeed

  • Just popping in

  • Posts: 41

  • Since: 2007/10/10


Hello there

I got sth to ask. When you create a new field in PROFILE module, how can it be possible to use it in the theme (theme.html file)?

For example, you've added a field asking favourite colour of users and u wanna show it beside the welcome message. (for advanced usage, may it be possible to use the favourite colour to show the name of the user in that colour?)

I will be grateful for any of ur help.



8
Sir_Saeed
Re: Two Xoops with one database!
  • 2009/9/2 9:54

  • Sir_Saeed

  • Just popping in

  • Posts: 41

  • Since: 2007/10/10


unfortunately the download link doesn't work!



9
Sir_Saeed
Re: Two Xoops with one database!
  • 2009/8/31 15:06

  • Sir_Saeed

  • Just popping in

  • Posts: 41

  • Since: 2007/10/10


I copied XOOPS core 2.3.3 in a new folder (/en) - while main site in /index folder - and changed mainfile.php to use the main database.



10
Sir_Saeed
Two Xoops with one database!
  • 2009/8/31 9:49

  • Sir_Saeed

  • Just popping in

  • Posts: 41

  • Since: 2007/10/10


I have a site working for 4 years. Although I've tried many ways, I couldn't make it multi-language through available solutions. so I thought I can install another XOOPS core somewhere else using the main databse that users can login there too. and use it in another language and with different modules.

But the new xoops's first page is nothing but a white page.

Any help can u give me?




TopTop
(1) 2 3 4 5 »



Login

Username:
Password:

Lost Password? Register now!

Who's Online

63 user(s) are online (45 user(s) are browsing Support Forums)


Members: 0


Guests: 63


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits