51
T-Tech
Re: Smarty Help Please
  • 2004/3/16 0:33

  • T-Tech

  • Just popping in

  • Posts: 62

  • Since: 2004/3/3 1


*Bows to Mithrandir the trouble shooting God of xoops* lol


Mithrandir,

I took your advice on adding to the header.php, including my file to the header was not working, so I took all I needed and put it directly into the header and all is working fine. My only problem with it is that, In order for this to work on someone else's site they will have to replace the header.php they have with this modified one. Not a big deal considering its located in the main dir so they wont have a problem locating it. Regardless, your suggestion proved extremely helpful and I thank you :)

Thanks & Thanks, Danni :)



52
T-Tech
Re: Smarty Help Please
  • 2004/3/15 17:45

  • T-Tech

  • Just popping in

  • Posts: 62

  • Since: 2004/3/3 1


Ok, I gave that a try but it still dosent seem to be working. Below is the techtheme.php im wanting to include.

<?php
include ('../../../mainfile.php');
$prefix XOOPS_DB_PREFIX;
$dbhost XOOPS_DB_HOST;
$dbname XOOPS_DB_NAME;
$dbuser XOOPS_DB_USER;
$dbpass XOOPS_DB_PASS;
//require(XOOPS_ROOT_PATH."/class/smarty/Smarty.class.php");
//$smarty = new Smarty;
$link mysql_connect($dbhost$dbuser$dbpass);
$dbs mysql_select_db($dbname$link);
$sql mysql_query("SELECT * FROM `".XOOPS_DB_PREFIX."_themeconfig`"$link);
while( 
$row mysql_fetch_object($sql) ){
$scroll1 $row->xscroll1;
$scroll2 $row->xscroll2;
$namesite $row->xsitename;
$siteurl $row->xsiteurl;
$slogansite $row->xsiteslogan;
$copy $row->tech_copy;
$link1 "<a href="$row->link1_url">$row->link1_text</a>";
$link2 "<a href="$row->link2_url">$row->link2_text</a>";
$link3 "<a href="$row->link3_url">$row->link3_text</a>";
$link4 "<a href="$row->link4_url">$row->link4_text</a>";
$link5 "<a href="$row->link5_url">$row->link5_text</a>";
$link6 "<a href="$row->link6_url">$row->link6_text</a>";
$link7 "<a href="$row->link7_url">$row->link7_text</a>";
$link8 "<a href="$row->link8_url">$row->link8_text</a>";
$link9 "<a href="$row->link9_url">$row->link9_text</a>";
$link10 "<a href="$row->link8_url">$row->link8_text</a>";
global 
$xoopsTpl;
$xoopsTpl->assign("link1",$link1);
$xoopsTpl->assign("link2",link2);
$xoopsTpl->assign("link3",link3);
$xoopsTpl->assign("link4",link4);
$xoopsTpl->assign("link5",link5);
$xoopsTpl->assign("link6",link6);
$xoopsTpl->assign("link7",link7);
$xoopsTpl->assign("link8",link8);
$xoopsTpl->assign("link9",link9);
$xoopsTpl->assign("link10",link10);
$xoopsTpl->display(XOOPS_ROOT_PATH."/themes/TechThemeDefault/theme.html");
}
?>


And in the theme.html I have included this line:

<include_php file="http://mysite.com/themes/TechThemeDefault/techtheme.php" />


However, I'm still stuck :(



53
T-Tech
[Solved] Smarty Help Please
  • 2004/3/15 17:01

  • T-Tech

  • Just popping in

  • Posts: 62

  • Since: 2004/3/3 1


Let's see if I can explain this without confusing anyone or myself:P

I have a theme that I need to include a php file into that holds some vars that I need to use.

Example:
(stuff.php)

sql query = $result
$result = $blah

I need to use $blah in the theme.html
So how would I include the stuff.php?????

Hope you followed that :(



54
T-Tech
Re: How do you get the news to show on the front page?
  • 2004/3/13 14:09

  • T-Tech

  • Just popping in

  • Posts: 62

  • Since: 2004/3/3 1


In your admin cpanel:
Click on the system admin-
Then to prefrences-
General settings-

You will see a question "Module for your start page" look in the drop down menu and select "news".
Now, when you make your new posts, if you want the artical to display right away and not be deleted after time, be sure to leave the bottom part of the news submission form alone. (The part with the times and dates ect).

Hope this helps :)
Regards, Danni.



55
T-Tech
Re: Can port this webcam module from phpnuke?
  • 2004/3/13 13:56

  • T-Tech

  • Just popping in

  • Posts: 62

  • Since: 2004/3/3 1



In answer to your question,
You can add a webcam to just about any page if you have the right program. Yahoo offers this service with their messanger. (SeeHere) Basically how it works is you upload an image "yourcam.jpg" and the program takes a new picture over and over replacing the one before, and updates the image. Some take a new images every second, some take many images every second.
To incorpertate this into a module you simpley have the user add the url to their personal cam image. :)

There is a XOOPS cam module on this sitealready you may want to check it out.

https://xoops.org/modules/mydownloads/viewcat.php?cid=24&min=10&orderby=titleA&show=10


Hope this helps :)
Regards, Danni.



56
T-Tech
Re: Help - Narga's Guestbook module - can't jump to next page(s)!
  • 2004/3/11 2:13

  • T-Tech

  • Just popping in

  • Posts: 62

  • Since: 2004/3/3 1


This may seem like a silly question, but are you using a masked or cloaked url?

This can create problems sometimes.



57
T-Tech
Re: Where is the log for installing xoops 2.0.6
  • 2004/3/11 1:19

  • T-Tech

  • Just popping in

  • Posts: 62

  • Since: 2004/3/3 1


ok, well all I can do is make suggestions, I know of a few different reasons why a page would read blank.

1. In the php_info page you said it display a bunch of info ... look whithin that info for Register Globals, see if this is set to =on or =off. This needs to be set to =on.

2. You may want to try upgrading yuor PHP to the newest stable version.

3. Are you trying to user ssl? This may create a problem.

4. Could you perhaps post a link? Sometimes a blank page can be a browser problem as well.

Normally when a page returns blank it is because you do not have permission to access it.

Hope one of the above suggestions returns useful. Please let me know, im most curious as to the root problem.



58
T-Tech
Re: Where is the log for installing xoops 2.0.6
  • 2004/3/10 18:08

  • T-Tech

  • Just popping in

  • Posts: 62

  • Since: 2004/3/3 1


What is your server enviroment?
Are you running your own apache?
Php version?
Linux?
Windows?

Sorry for all the questions, just trying to get an idea on your servers situation.



59
T-Tech
Re: Flash Banner?
  • 2004/3/10 17:03

  • T-Tech

  • Just popping in

  • Posts: 62

  • Since: 2004/3/3 1


Try using this codebase:

<object 
classid
="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" 
width="525" 
height="350">

  <
param 
name
="movie" value="http://mysite.com/YOURBANNER.swf"//Your banner link

  
<param 
name
="quality" value="high">

  <
embed 
src
="http://mysite.com/YOURBANNER.swf"  //yourbanner link
quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" 
width="525"       //The width of your banner
height="350">     //the height of your banner
</embed>
</
object>




Change the "src" values to your banners link
Change the "width" and "height" to your banners values
And you can remove my //notes

Note: If you are putting this code into an HTML page then its fine as is,
However if you are putting this code into a PHP page change the " to '

Hope this helps :)



60
T-Tech
Re: Installing two modules of the same type
  • 2004/3/10 16:54

  • T-Tech

  • Just popping in

  • Posts: 62

  • Since: 2004/3/3 1


Quote:

Rangarig wrote:
Is there any way to install two modules of the same type? In this case I would like to create a second FAQ module to be able to separate the two sections.



Rangarig,

I believe you could, however you would have to modify the module.

Which would entail:

Renaming the tables in the mysql.sql
Renaming the module itself.
And likely changing the linking structure.

May I ask why you would need to FAQ's?




TopTop
« 1 ... 3 4 5 (6) 7 »



Login

Who's Online

186 user(s) are online (119 user(s) are browsing Support Forums)


Members: 0


Guests: 186


more...

Donat-O-Meter

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

Latest GitHub Commits