TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,970
  • Latest: bynw
Stats
  • Total Posts: 196,058
  • Total Topics: 21,338
  • Online today: 201
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 202
  • Total: 203
  • Itchdog

PHP & SQL basic help please ?

Started by fenris_w0lf, January 23, 2006, 10:37:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fenris_w0lf

#20
Hmm...I have this in my Menu Manager...So I added the article just fine....







But it wont show in my Main Menu:







This also happened when I added the PJIRC Chat. To get that "Chat" link you see on the pic above I had to do as described in my previous post. Add a action to the action php and then add that line in that pic you see in my previous post. That pic is something I find when I press Edit on the "Main Menu" item (pos 0 Left Side Block) on next pic below.







Thats my Edit Blocks menu. I cant seem to find any IIRC here ://

QuoteIf you deleted that block add in a new one of the type "menubox", and anything you already have in the menu manager will show up.

When I try to add a new item these are the types I can choose from:

userbox
newsbox
statsbox
searchbox
html
onlinebox
themebox
shoutbox
catmenu
phpbox
scriptbox
recentbox
ssi
module
rss

???

Rasyr

ahh.. select catmenu (I had the wrong name)

and see what it gives you


fenris_w0lf

Ah yes...soo nice !!! :D

I deleted the Main Menu that was there (it was of type html) and I'm now using a catmenu instead. The (very small) drawback is that one cant seem to get rid of those "bullets" that pops up in front of the items ?

Rasyr

To get rid of the bullets:

Edit TPortalBlocks.template.php, this should be in your default directory. Find the following code:


function TPortal_catmenu()
{
        global $context, $settings, $options , $scripturl;

    if(isset($context['TPortal']['menu']) && !empty($context['TPortal']['menu'])){
        foreach($context['TPortal']['menu'] as $cn){
             echo str_repeat("  ", ($cn['sub']+1));
             if((!isset($cn['icon']) || (isset($cn['icon']) && $cn['icon']=='')) && $cn['type']!='head' && $cn['type']!='spac'){
                 echo '<img src="'.$settings['images_url'].'/TPdivider2.gif" alt="" />&nbsp;';
             }
             elseif(isset($cn['icon']) && $cn['icon']!='' && $cn['type']!='head' && $cn['type']!='spac'){
                 echo '<img alt="*" src="'.$cn['icon'].'" />&nbsp;';
             }


Change /TPdivider2.gif to /blank.gif and those bullets should disappear. (Note: make sure you have blank.gif in the images folder of the theme you are using -- if not, drop the attached image file into the Themes/[theme you are using]/images folder)

[attachment deleted by admin]

fenris_w0lf

man...is there ANYTHING you dont know how to fix !??

:D

Again Rasyr, HUGE thanks!!!!

Rasyr

Hey! I like tweaking and playing with code. It is how I figure out how it works.. hehe...


fenris_w0lf

Hmm....some of the users reports of:

Warning: mysql_pconnect(): Access denied for user 'xxxxxx_phpbb'@'localhost' (using password: YES) in /home/xxxxxx/public_html/db/aokranks_username.php on line 9
Access denied for user 'xxxxxx_phpbb'@'localhost' (using password: YES)


Any idea ??

Rasyr

Well, it apparently has something to do with the aokranks_username.php page.

I know that isn't a SMF or TP page, so what is it?


fenris_w0lf

What it is ??

Well, I'll tell you what it is!!!  :tickedoff:

.
.
...its me jumping the gun with my eyes closed makin miself look like the fool I prolly am...

It was someone clicking the old ranking-list (with a dead database) instead of the new one you helped me make, and I assumed the error was due to the newest one... *blush*

* fenris_w0lf <--  :idiot2:

hehe

fenris_w0lf

#29
BTW: Is there a spesific name for the "place" where we've placed the result of that php? You know, in the centre with blocks around and menuline on top...

(My first language is not english prolly one of the reasons I'm asking this)

This website is proudly hosted on Crocweb Cloud Website Hosting.