![]() |
Quote:
|
Quote:
|
Quote:
PHP Code:
PHP Code:
|
Quote:
HTML Code:
<if condition="is_member_of($bbuserinfo, X)"> |
I'm going to be usin' this one! Thanks for the portal!
|
Quote:
I tried removing everything from that template and the bar still shows? |
I still cant figure out how to get the code for my gallery script to work. I want it centered in a latest thread block at the bttom of the page. I am php stupid.
|
Quote:
Thanks again for a great mod. |
oops still a small problem with the navbar background under the links.. I just can't seem to change this blue bar, huh
|
Quote:
Code:
<table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%"> Note: This is just a revamp of the other weather block for vbadvanced. Nothing changed except for the wrapping code to make it a side block for vbindex. All credits go to the author of that addon. If I am wrong in posting this, then feel free to have it removed. )O( Cloudrunner )O( |
Quote:
Thanks. |
Quote:
thanks again for a wicked hack....uh, wicked add-on and the support. |
Quote:
Nevermind, I did a search for the original thread for this hack and it explained how to add a new user field. Works great, thanks. |
Good Job on RC5. The upgrade went flawless, although I had to use the extra link to get past the URL list. No inconvienance.
The changes in the templates look very good too. Cheers |
zip is currupted ??
|
the zip is currupted?
|
I have installed and all works well apart from the icon1.gif link, I get the ewd cross instead of the icon
The path shows http://www.somesite/portal/forum//po...cons/icon1.gif as you can see there is an addedd //portal/forum part, how do I get rid of that Regards Chet |
Quote:
Thanks that did the trick :) |
1) I had vBi 3.0RC3 installed and wanted to automatically upgrade to vBi 3.0RC5. The upgrade installer went fine (no errors). But it didn't do anything to my vbindex_* templates. It also didn't tell me that I had customized templates since 3.0RC3 (although I have customized them).
2) Confused, I loaded the vbiupgrade script again and chose uninstall. Well, to my surprise it didn't do anything to my templates again, there were all still there, even after the uninstall. So are 1) and 2) both related to bugs in the install/uninstall script or am I doing something wrong? If they are bug-related, I am kinda hesitant to use the installer script at all on my live-system (who knows what other bugs are in there). In this case, perhaps someone can explain how to manually upgrade vBi instead? |
Quote:
OK Think i'm getting some place now, I have the images working now by changing the url of the forum home page in vBoptions, now all the links for the forum just point to my root index and not the forums, can anybody help Chet |
How can I uninstall this hack ? Also when I upgrade my board any problem future ?
Because add everywhere a lot of style and phrases. Can I unistall this hack ??? |
Quote:
Where do I find information on how to do this Regards Chet |
Quote:
Sorry about that )O( Cloudrunner )O( |
Quote:
Then go to the associated custom block template and adjust your HTML code there. To add more than that, just go into your vbindex.php and have it preload the next custom block number, and then in your templates add a new custom block with the next highest number and then copy the code from another custom code original and yer good to go. I have over simplified this, let me know if you don follow. )O( Cloudrunner )O( |
Quote:
Regards Chet |
its OK I have now found it
Thanks Chet |
Are there any size constraints that would limit how much code could be in a vbindex custom block? I'm doing "On this Date..." quote system for my website and I'm going to have to have a paragraph or so of text for every day of the year.
I'm doing it in html and not pulling it from a database.. not much of a programmer. www.authentic-campaigner.com |
What custom blocks are you planning to add in the future as an option? Maybe something like vb portal affiliate box?
|
Quote:
Edit line 195 of vbiupgrade.php and replace: PHP Code:
PHP Code:
|
Quote:
|
Quote:
|
Quote:
Any comment ??? |
I can't seem to change the navbar background in the index -> nav template. I sware I have done everything possible. its not my paths they have all been corrected (hense the red gradients in the sample). anyone guide me?
|
Here is the gallery code I want to include at the bottom of the vbindex page. I want it centered like the centered latest threads page. I dont know much php. Can anyone help me and tell me where to put it please?
//++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++ +++++++++++++++++++ echo("<table bgcolor=\"#F7F7F7\" width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\"> "); echo("<tr> "); echo("<td valign=\"top\" bgcolor=\"CC0000\"><font face=\"verdana, arial, helvetica\" size=\"2\" class=\"nf\" color=\"#FFFFFF\"> <b>Latest "); echo("Gallery Images - "); $dbusername=""; $password=""; $database="" mysql_connect(localhost,$dbusername,$password); @mysql_select_db($database) or die( "Unable to select database"); $query = "SELECT * FROM photos WHERE approved='1'"; $result=mysql_query($query); $numrows=mysql_num_rows($result); echo ("$numrows Photos and Counting"); echo("</b></font></td>"); echo("</tr>"); echo("<tr>"); echo("<td bgcolor=#F7F7F7><div align=center>"); echo("<p><font size=1 face=Geneva>"); //////////////////////////////////////////////////////////////////////////// // thumbincluder.php version 1.1 // A thumbnail includer for your non-photopost page // Tested with Photopost PHP version 3.0.4 //////////////////////////////////////////////////////////////////////////// //1.0 first release //1.1 included remote functions for standalone operation // please note database hooks and paths are required in settings below. //////////////////////////////////////////////////////////////////////////// // July 13, 2002 Here is a hacked-up version of photoinclude.php that has // been merged with a hacked-up version of index.php and a hacked-up version of // display_gallery by a guy on two quarts of caffeine at 3:40 AM, oh, // and did I mention it was his first php programming experiment ever? // // If that didn't scare you enough: BACK UP YOUR DATABASE NOW! // // This file goes in your photopost php directory with all the other files // Then configure Display Settings below as desired. // // NOTES: // Please note that the prior typo "lastest" has been fixed, so the valid // switches are random, most_views (plural) and latest (spelled correctly) // // If you liked this hack, email me a link to your photopost so I can learn // something from your layout too! // // Live long and prosper - Matt Chroust (memobug@spamcop.net) // //////////////////////////// COPYRIGHT NOTICE ////////////////////////////// // This script is part of PhotoPost PHP, a software application by // // All Enthusiast, Inc. Use of any kind of part or all of this // // script or modification of this script requires a license from All // // Enthusiast, Inc. Use or modification of this script without a license // // constitutes Software Piracy and will result in legal action from All // // Enthusiast, Inc. All rights reserved. // // http://www.photopost.com legal@photopost.com // // Contributing Developer: Michael Pierce (danasoft.com) // // // // PhotoPost Copyright 2002, All Enthusiast, Inc. // //////////////////////////////////////////////////////////////////////////// // ************************************************** *********************** // ************************************************** *********************** //PhotoPost Setting //You must change these values in order to run this script $Url_Path = "http://www.ifitsfast.com/photogallery/"; //URL of your photo album, where the index.php is (with / at end) $data_dir = "http://www.ifitsfast.com/photogallery/data/" ; //URL of your photo dir where those jpeg stored (with / at end) $images_dir =$Url_Path."../images/"; //URL of your photopost images dir where default missing thumb image is stored (with / at end) $rel_dir = "../photogallery/data/"; // path to the data directory where pictures reside RELATIVE // to the location of THIS file (used for checking thumbs) //Database Setting //You must change these values in order to run this script //These value are not visible in the output page source $host = ""; //Server Name $user= ""; //Username $password= ""; //Password $database=""; //Photopost database name or forum database name //Display Setting (Changes to fit your page) $q_switch = "latest"; // "random" or "most_views" or "latest" $limit = 8; //number of image to show $table_width = "65%"; //width of the table generated $column = 4; //number of columns of the table generated $photo_cell_align = "center"; //alignment of those cells // CSS Setting (optional) $class_link = ""; //css for link, leave blank if none $class_table = ""; //css for table, leave blank if none $class_mouseover = ""; //color when mouse over the photo cell, leave blank if to cancel // ************************************************** *********************** // ************************************************** *********************** ///////////don't edit below this line if you are too afraid to kill the code////////////// // ---------------------- THESE FUNCS FROM pp-inc ----------------- function mysql_query_eval( $query, $database ) { global $Globals; $mysql_eval_error=""; $mysql_eval_result = mysql_query($query, $database) or $mysql_eval_error = mysql_error(); if ($mysql_eval_error) { if ( $Globals{'debug'} == 1 ) { $letter = "An error was encountered during execution of the query:\n\n"; $letter .= $query."\n\n"; $letter .="The query returned with an errorcode of: \n\n$mysql_eval_error\n\n"; $letter .= "If you need assistence or feel this is a 'bug'; please report it to our "; $letter .= "support forums at: http://www.techimo.com/forum/f27/index.html\n\n"; $letter .= "To turn off these emails, set \$debug=0 in your config-inc.php file."; $email = $Globals{'adminemail'}; $email_from = "From: ".$Globals{'adminemail'}; $subject="Subject: ".$Globals{'webname'}." MySQL Error Report"; $subject=trim($subject); mail( $email, $subject, $letter, $email_from ); } elseif ( $Globals{'debug'} == 2 ) { dieWell( "MySQL error reported!<p>Query: $query<p>Result: $mysql_eval_error<p>Database handle: $database" ); exit; } return FALSE; } else { return $mysql_eval_result; } } function get_ext( $filename ) { $photolen = strlen($filename); $RetVal = substr( $filename, $photolen-3, $photolen); return $RetVal; } function get_filename($filename) { // strip off the last 4 $len = strlen( $filename )-4; $RetVal = substr( $filename, 0, $len); return $RetVal; } // ---------------------- THESE FUNCS FROM pp-inc ----------------- // Connecting, selecting database $link = mysql_connect ("$host", "$user", "$password") or die ('I cannot connect to the database.'); mysql_select_db ("$database")or die("Could not select database"); // Here is the hacked up display_gallery($q_switch) $catquery=""; if ( IsSet($cat) ) { $querya="SELECT catname FROM categories WHERE id=$cat"; $catq = mysql_query_eval($querya,$link); $catr = mysql_fetch_array($catq); $catname = $catr['catname']; mysql_free_result($catq); $queryb = "SELECT id FROM categories WHERE parent='$cat' ORDER BY catorder ASC"; $boards = mysql_query_eval($queryb,$link); $cnt=0; while ( $row = mysql_fetch_array($boards, MYSQL_ASSOC)) { $catqid = $row['id']; if ( $cnt == 0 ) { $cnt=1; $catquery .= "$catqid"; } else { $catquery .= ",$catqid"; } } mysql_free_result($boards); } // Connecting, selecting database // Selecting method and Perform SQL query switch ($q_switch) { case "most_views": if ( !IsSet($cat) ) { $group_title = "Most Popular Images - All Categories"; $query = "SELECT id,user,userid,cat,title,bigimage,views FROM photos WHERE bigimage!='' AND approved='1' $exclude_cat ORDER BY views DESC LIMIT $limit"; } else { $query = "SELECT id,user,userid,cat,title,bigimage,views FROM photos WHERE bigimage!='' AND approved='1' $exclude_cat AND cat in ($catquery) ORDER BY views DESC LIMIT $limit"; $group_title = "Most Popular Images - $catname"; } break; case "latest": if ( !IsSet($cat) ) { $group_title = "Most Recent Images - All Categories"; $query = "SELECT id,user,userid,cat,title,bigimage,views FROM photos WHERE bigimage!='' AND approved='1' $exclude_cat ORDER BY date DESC LIMIT $limit"; break; } else { $group_title = "Most Recent Images - $catname"; $query = "SELECT id,user,userid,cat,title,bigimage,views FROM photos WHERE bigimage!='' AND approved='1' $exclude_cat AND cat in ($catquery) ORDER BY date DESC LIMIT $limit"; break; } break; default: if ( !IsSet($cat) ) { $group_title = "Random Images - All Categories"; $query = "SELECT id,user,userid,cat,title,bigimage,views FROM photos WHERE bigimage!='' AND approved='1' $exclude_cat ORDER BY RAND() DESC LIMIT $limit"; break; } else { $group_title = "Random Images - $catname"; $query = "SELECT id,user,userid,cat,title,bigimage,views FROM photos WHERE bigimage!='' AND approved='1' $exclude_cat AND cat in ($catquery) ORDER BY RAND() DESC LIMIT $limit"; break; } break; } $i = 1; $e = 2; $col_val = $column; $result = mysql_query_eval($query,$link) or die("Query failed"); print "<table class=\"".$class_table."\" width=\"".$table_width."\"><tr>"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $photo_name = get_filename( $line['bigimage'] ); print "<td onmouseover=this.style.background='".$class_mouseo ver."' onmouseout=this.style.background='' align=\"center\">"; $theext = get_ext( $line['bigimage'] ); $thecat = $line['cat']; $temp_user = ($line["userid"]); $filepath = "$data_dir"."$thecat/$temp_user$photo_name-thumb.$theext"; $rel_path = "$rel_dir"."$thecat/$temp_user$photo_name-thumb.$theext"; print "<A class=\"$class_link\" href=\"$Url_Path"."showphoto.php?photo=".$line['id']. "\">"; if ( file_exists( $rel_path ) ) print "<img border=\"0\" src='$filepath'>"; else print "<img border=\"0\" src='".$images_dir."nothumb.gif' alt='$filepath'>"; print "<Font size=\"1\"color=\"".$Globals{'maintext'}."\" face=\"verdana,arial\">\n"; if ($q_switch == "most_views") { print "<br>".$line["title"]."<br>".$line["views"]." views"; print "</a><br></font></div><br>"; } else { print "<br>".$line["title"]; print "</a><Br>by ".$line["user"]."</font></div><br>"; } if ($i == "$column") { print "</td></tr><tr>"; $column = $col_val*$e; $e++; } else {print "</td>";} $i++; } print "</tr></table>"; // Closing connection mysql_close($link); // mysql_close($db_link); echo("</font></p>"); echo("</div></td>"); echo("</tr>"); echo("</table>"); //++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++ +++++++++++++++++++ |
Quote:
|
Quote:
I've also noticed that "Members Online Today" shows ALL of my users which I know is not correct. That is also happening on the main page of my Admin CP. It's showing ALL posts and threads as new today. One last thing, and I think it's related to the calendar template issue I'm having, but when I click on "April" on my calendar it's adding the beginning of my site url twice which is causing a "page cannot be found" error. |
Quote:
|
Quote:
Quote:
|
NTLDR,
Is there any reason why you moved the headinclude/navbar/pm_popup_scripts templates out to vbindex_headinclude/navbar/pm_popup_scripts, since RC4? The problem I see is that whenever Jelsoft releases an upgrade with changes in those templates, one must apply the changes twice (normal and vbindex_headinclude/navbar/pm_popup_scripts). |
has anyone an idea how to create a custom box which include today's events?
i tried to include the code vom the vbulletin index.php for the next 5 days events, but without success ;( but i think, that a "show today's events box" would be really great :) |
All times are GMT. The time now is 09:32 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|