Author |
Message |
jondvb
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Oct 25, 2003
Posts: 67
|
Posted:
Sun Jan 30, 2005 1:15 pm |
|
First, I am trying to greate a new topic, and I only have one choice for an image. I copied several images to the /themes/V-BlueBaby/images/topics/ folder and still can only select the /phpnuke.gif. Any ideas?
Second, I am receiving the following error on my contactus module:
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in ....../josephwarrenlodge.com/includes/sql_layer.php on line 286
I'm using Nukestyles Contactus Plus and line 286 reads:
281 {
282 global $dbtype;
283 switch ($dbtype) {
284
285 case "MySQL":
286 $row = mysql_fetch_row($res);
287 return $row;
288 break;;
289
290 case "mSQL":
291 $row = msql_fetch_row($res);
292 return $row;
293 break;;
Any help would be GREATLY appreciated. |
Last edited by jondvb on Mon Jan 31, 2005 8:43 am; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
Site Admin
![](modules/Forums/images/avatars/41f0b40a419280935f3a0.gif)
Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Mon Jan 31, 2005 8:26 am |
|
Try moving your topics images from /themes/V-BlueBaby/images/topics/ to /images/topics/.
Not sure what the ContactPlus error is, but it sounds like a configuration issue - it's can't connect or read the database.
Finally, I would recommend that you remove the full path from your post (in the error message). People can use that for inappropriate purposes. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jondvb
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 31, 2005 8:44 am |
|
kguske....thanks for the advice.
I just hacked the DB in myphpadmin to point to the corresponding images.
Another question....I am not able to find the location of the block images. How do I change the image at the top of each block? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 31, 2005 9:09 am |
|
That's specific to the theme, and it's probably in a directory under the theme directory. Check the /themes/V-BlueBaby/theme.php - the images are probably in /themes/V-BlueBaby/images |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jondvb
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 31, 2005 9:28 am |
|
Hi hguske,
I am searching theme.php and don't think that is where the block images are controlled. I do see the block images in the /themes/V-BlueBaby/images folder, but do not know which .php is pulling them? The generic blocks all have the images at top, but any new blocks use generic fint. I want to create my own block images and use them for the new blocks I add to the site.
Thanks. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 31, 2005 10:15 am |
|
In theme.php, search for the specific image name (e.g. box_r1_c1.gif). You'll see it in several place (e.g. function OpenTable, function themeindex, function themesidebox). If you just want to change the blocks' appearance, just change function themesidebox. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jondvb
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 31, 2005 10:32 am |
|
Hi kguske,
These images, as you mention, just control the look and feel of the blocks. There is a place where the titles of the blocks are held. I need to find that. I'm not worried about the look and feel from a theme standpoint, I need to change the heading in the actual block. I open the .php file of each block and don't see anything pointing to the image at the top of the block. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 31, 2005 10:37 am |
|
The block title isn't an image, it's text defined in the Blocks administration (most PHP-Nuke themes work this way, though there are a few that use flash or other approaches, but it's still driven by the Title in the Blocks administration). Just change the block "Title" to be whatever you want. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jondvb
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 31, 2005 10:48 am |
|
Hi Kguske,
Can you please take a look at the site?
http://josephwarrenlodge.com/index.php
Look at the Main Menu block. Main Menu is an image, located in the themes/images/blocks folder. I can not find a single .php file that calls this image file. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 31, 2005 11:20 am |
|
I see. Let me check that theme later this afternoon and I'll tell you what I find. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 31, 2005 2:52 pm |
|
There is some code in the theme.php, function themesidebox that controls the display of the graphical header:
Code:
$img_name=explode(" ",$title);
$img_nametwo=$img_name[0];
if(file_exists("themes/V-BlueBaby/images/blocks/$img_nametwo.gif")) {
echo "<IMG SRC=\"themes/V-BlueBaby/images/blocks/$img_nametwo.gif\"><br /><br />";
} else {
echo "$title<br />\n";
}
|
This code looks for the existence of the graphic with the same name as the block, and displays the graphic instead of the title if the graphic exists. You could modify this, replace the graphic with your own, or remove/rename the graphic to display a text title instead. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jondvb
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 31, 2005 2:57 pm |
|
Amazing.
I'll give this a shot and let you know how it worked.
Thanks for finding this! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
jondvb
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 31, 2005 3:03 pm |
|
LOL that worked.
THANK YOU SO MUCH! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 31, 2005 3:09 pm |
|
No problem. I haven't seen that approach in any other theme - it's definitely a bit unusual.... |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|