News:

Wondering if this will always be free?  See why free is better.

Main Menu

Advanced SSI FAQ

Started by Tomer, June 24, 2004, 05:47:39 PM

Previous topic - Next topic

[Unknown]

Quote from: Tom on August 13, 2004, 09:24:05 AM
Thanks !

Edit: Sorry, I really hate to be a pain. It still doesn't appear to be looking. The page is www.pogocheats.net and the CSS is on http://www.pogocheats.net/styles/main_style.css. Thanks very much for your help.

Yuck HTML 4 :P.

For HTML 4, you will have to "trick" MSIE into doing it properly, like so:
.ssi_table,.ssi_table td, .ssi_table th
{
   font-size: 8pt;
}

-[Unknown]

Tom

Hehe, that did the trick. As always, thanks very much for your help.

Tom

Hi.. me again.  Basically the problem I'm having is that the following code isn't working for me when it is on a page that is an include (using <?php require...) of the main page. It works fine when it's on the index, but when it's on an incude it always shows the login even if the person is already logged in.

On the top of the incude page I put the full SSI path like I would if it were on it's own. I'm not sure if that has anything to do with the problem, but I get errors when I remove it.  I am also using SSI functions on the index as well as the include page, so I'm not sure if that could be cauing any conflict either.

Here's the code, just very basic stuff.

<?php
if ($context['user']['is_guest'])
   {
      
ssi_login();
   }
else
   {
      
ssi_welcome();
   }

?>

reznorsoft

is there any way of modifying the following code in a way, that the output, (# Comments | Write Comment), reflects a particular topic and that topic alone, not the board under which the topic exists  ???
I don't suppose there's a $topic parameter for it?

                        <?php
                        
$array ssi_boardNews(nullnullnullnull'array');

foreach ($array as $news)
{
echo '
<table border="0" width="100%" align="center" class="ssi_table">
<tr>
<td>'
$news['link'], ' | '$news['new_comment'], '</td>
</tr>
</table>
<br />'
;
}
                        ?>

[Unknown]

Tom, that's because the cookies are not going to the other pages, I can only assume.  Otherwise it should work not different.

Reznorsoft.... it should be to the topic, not to the board.  What links does it give you to the contrary?

-[Unknown]

reznorsoft

QuoteReznorsoft.... it should be to the topic, not to the board.  What links does it give you to the contrary?
the links are in fact pointing back to the right topic .. I should have worded my original message clearer
what I was getting to, is that if more than one topic exists under that board, then a link will be displayed for those topics as well .. can that be controlled?
being able to pick the topics that can be commented on

Dragon Gamer

Can somebody please help me understand all this.

I'm still confused from the Basic SSI tutorial.

I'm totally blank when it comes to this.
Jason-Marc Labban
Graphic Maker...Sigs, Avatars, Banners and Buttons.



Neo Hacks

Elissen

Quote from: Dragon Gamer on August 17, 2004, 12:54:17 PM
Can somebody please help me understand all this.

I'm still confused from the Basic SSI tutorial.

I'm totally blank when it comes to this.

Maybe you can tell us what you want to do so we can start from there.

Dragon Gamer

Well you see how there's an affiliate section on the site.

I want to put that.

I tried but it just doesn't work, tell me what to do plz!!  >:(
Jason-Marc Labban
Graphic Maker...Sigs, Avatars, Banners and Buttons.



Neo Hacks

[Unknown]

Reznorsoft.... not really.  You can limit the number displayed but there's currently no way (except manually) of limiting which it gives links to reply to.

Dragon Gamer,
I'm sorry but I don't understand your request.  You want to put... that?  Could you please clarify?

-[Unknown]

reznorsoft

Okay .. thanks [Unknown]

Quote from: Dragon Gamer on August 17, 2004, 08:56:36 PM
Well you see how there's an affiliate section on the site.

I want to put that.
I don't see what affiliate section you're referring to, either

Dragon Gamer

look to the left

u see the sub menu marked Affiliates

and you have MySQL and powered by php

i want to learn how to do make it show up on my forum page.
Jason-Marc Labban
Graphic Maker...Sigs, Avatars, Banners and Buttons.



Neo Hacks

reznorsoft

Quote from: Dragon Gamer on August 18, 2004, 11:00:00 AM
look to the left

u see the sub menu marked Affiliates

and you have MySQL and powered by php

i want to learn how to do make it show up on my forum page.
oh .. you meant look on the SMF page ... I was looking on yours  :P
those are just hyperlinked images .. you don't need SSI to do that ..
all you need to do is visit both those sites .. grab the image .. upload them to your server .. and place a url to make the images active and link back to their respective sites .. 'course you may not want to put them under an 'affiliate' heading unless you're really affiliated with them (at least I don't think you should .. someone else might disagree with me on that)

Tomer

#53
Dragon Gamer, thats simple HTML, no need for SSI there, SSI is used to connect your forum and site, so to speak.


You can add your own affiliates by adding an HTML menu to /Themes/default/index.template.php

Hmmmm, looks like someone beat me to it, weird, SMF didn't tell me a reply has been written while replying.


Dragon Gamer

Thanx, i'll try it out.

I thought u needed SMF to do that.

Sorry  :o
Jason-Marc Labban
Graphic Maker...Sigs, Avatars, Banners and Buttons.



Neo Hacks

Tomer

Quote from: Dragon Gamer on August 18, 2004, 12:15:25 PM
Thanx, i'll try it out.

I thought u needed SMF to do that.

Sorry :o

Don't you mean SSI? :d

Dragon Gamer

sorry bout this, but how do u do that.

i'm no php expert.

just show the code i need to edit, or where to put it in the index.template.php
Jason-Marc Labban
Graphic Maker...Sigs, Avatars, Banners and Buttons.



Neo Hacks

reznorsoft

where would you like those images included?
do you have a site to go along with your forum? I can't seem to find a link to it

I ask, because if you're looking to add these 'affiliates' into your forum template, I should point out that you already have a smaller version of these included (by default) in the forum template, at the bottom of the page under the copyright tag

Dragon Gamer

no i just want to know how to put a side panel with my affiliates on my forum page.

Not php and MySQL
Jason-Marc Labban
Graphic Maker...Sigs, Avatars, Banners and Buttons.



Neo Hacks

Advertisement: