81
smdcom
Re: Ajax in Xoops Template

This is VERY interesting topic. The biggest advantage of using Ajax technologies is that data can be manipulated without having to render the entire page again in the web browser. This allows web applications to respond more quickly to many types of user interaction and to avoid repeatedly sending unchanged information back and forth across the network.



82
smdcom
Re: error php.exe

what error?



83
smdcom
Re: getting a variable for currently logged in user... is it possible?

$xoopsUser is global variable. We've to include mainfile.php in order to use it. Can u give me your full code or pm me the full code of flashbanner.php.



84
smdcom
Re: Adding PHP File, not a module?

Yes. You can create custom block with type PHP.

SMD



85
smdcom
Re: how to i change whats in a smarty tag?

Yes. Make sure your template is updated. Go to system -> preferences -> general settings -> Update module template .html files from themes/your theme/templates directory? = Yes.

Change back to No after finish.

SMD



86
smdcom
Re: getting a variable for currently logged in user... is it possible?

I think it's still not include mainfile.php

Try put your flashbanner.php at XOOPS_ROOT and use:

include("mainfile.php");



87
smdcom
Re: getting a variable for currently logged in user... is it possible?

Oh.. i didn't notice you put the flashbanner.php in /include folder. Change your mainfile path to

include XOOPS_ROOT_PATH."/mainfile.php";



88
smdcom
Re: getting a variable for currently logged in user... is it possible?

what's on line 7?



89
smdcom
Re: how to i change whats in a smarty tag?

you can create it:

$story['categorytitle'] = $thisstory->textlink();
$story['topictitle'] = "<a href='".XOOPS_URL."/modules/news/article.php?storyid=".$sarray[$i]->storyid()."'>".$sarray[$i]->title()."</a>";


then use <{$story.categorytitle}> & <{$story.topictitle}> in your db:news_index.html

SMD



90
smdcom
Re: getting a variable for currently logged in user... is it possible?

You can try this:

include("mainfile.php");

global 
$xoopsDB$xoopsUser;

$query $xoopsDB->query("SELECT flashbanner FROM dnet_user_profile WHERE profileid = "".$xoopsUser->uid().""");
while(
$row $xoopsDB->fetchRow($query)){
   echo 
$row['flashbanner'];
   
// to fetch result
}


Good Luck!

SMD




TopTop
« 1 ... 6 7 8 (9) 10 11 12 ... 66 »



Login

Who's Online

245 user(s) are online (152 user(s) are browsing Support Forums)


Members: 0


Guests: 245


more...

Donat-O-Meter

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

Latest GitHub Commits