41
dplittle
Re: Best Way To Make Banners Dynamic
  • 2004/9/20 22:11

  • dplittle

  • Just popping in

  • Posts: 49

  • Since: 2004/9/15


Sheez! Why didn't I think of that!

That is exactly what I needed! And it's even more flexible!

Thanks

David



42
dplittle
Re: WF-Download Modifications
  • 2004/9/20 21:59

  • dplittle

  • Just popping in

  • Posts: 49

  • Since: 2004/9/15


Thanks. Moving all other comments over to the WF-Project Forum under this post.

David



43
dplittle
Best Way To Make Banners Dynamic
  • 2004/9/20 20:56

  • dplittle

  • Just popping in

  • Posts: 49

  • Since: 2004/9/15


I've been modifying the look of our XOOPS install and have now gotten to a place where I need to have some PHP code in the banner. It appears that this won't work so I'm wondering if anyone has suggestions on the best way to do what we need.

We are using XOOPS as an Employee Portal so I am customizing the header. I want the header to always have a couple links to places all employees need. I decided to make a custom banner since it would work regardless of the theme and I wouldn't have to worry about reapplying the modification if I update the themes (or make the modification in multiple themes). This worked great until I figured I needed to have some dynamic properties.

One of the links needs to change depending on if the employee is accessing the site from behind the router or from the "outside world." Here is the code I'd like to have in the banner...

Quote:

<table>
<tr>
<td rowspan="2">
<img ... />
</td>
<td>
<?php
if ($_SERVER['REMOTE_ADDR'] == "{internal ip address}")
{
print '<a href="{internal link}">Order Entry</a>';
}
else
{
print '<a href="{external link}" target="_blank">Remote Order Entry</a>';
}
?>
</td>
</tr>
<tr>
<td>
<a href="{another link}" target="_blank">Webmail</a>
</td>
</tr>
</table>


The PHP isn't working. Any suggestions? Will I have to resort to changing the theme.html and converting everything to Javascript?

Thanks for any guidance.

David



44
dplittle
WF-Download Modifications
  • 2004/9/20 18:11

  • dplittle

  • Just popping in

  • Posts: 49

  • Since: 2004/9/15


I have recently installed WF-Downloads and was wondering if anyone else out there has done any significant modifications to the pages in this module. I've posted a question out on the WF-Projects site but thought I'd try here too.

I really like WF-Downloads but I need to customize the screens a bit for our use. I am using it for our Employee Portal so that my remote users can up and download shared files. We don't need the fields "Mirror", "Version", "License", etc. and they are causing some confusion with my users. I'd like to turn off the display of the fields we don't need on the upload and file management screens.

I just need some guidance on which files to modify and also ask if there is a way to do this so that I don't cause a big headache the next time I update WF-Downloads. I'm guessing I'll have to reapply the modifications.

Thanks

David



45
dplittle
Re: Adding users in bulk via SQL
  • 2004/9/17 21:13

  • dplittle

  • Just popping in

  • Posts: 49

  • Since: 2004/9/15


Quote:

Dave_L wrote:

$pw = md5(uniqid(mt_rand(), true));




Thanks Dave ... that will work great unless I'm doing a bulk upload of a CSV file. I tried creating a user with a generic password and then using that for all the users but it didn't seem to work. Now I'm just creating them with a garbage password and having everyone do the "Lost Password" approach (except the boss of course...fixed his by hand ).

I just created all the users and am now doing a "Mail User" mailing to everyone and tell them how to create a new password.

Thanks again

David



46
dplittle
Re: Adding users in bulk via SQL
  • 2004/9/17 19:23

  • dplittle

  • Just popping in

  • Posts: 49

  • Since: 2004/9/15


Quote:

Salsero wrote:
I generated passwords for all of them and asked the people to modify it.


I was more interested in how you added the password during the bulk add. Did you just generate one account, copy the hashed password and then use the same string for all the users?



47
dplittle
Re: Adding users in bulk via SQL
  • 2004/9/17 19:01

  • dplittle

  • Just popping in

  • Posts: 49

  • Since: 2004/9/15


Quote:

Salsero wrote:
I've tried, but it seems like they are not registered, i.e. they can log in to change their profile (e.g. password)


How did you handle the initial passwords when you did the bulk load?

Thanks

David



48
dplittle
Re: Module Install Hosed INDEX
  • 2004/9/15 19:35

  • dplittle

  • Just popping in

  • Posts: 49

  • Since: 2004/9/15


I think I fixed it ... I compared the header.php file to the one distributed and there was a BIG difference! I just copied the header.php file from my html directory back up and can at least log in again. I'll see if I can figure out what else got broken.

David



49
dplittle
Module Install Hosed INDEX
  • 2004/9/15 19:06

  • dplittle

  • Just popping in

  • Posts: 49

  • Since: 2004/9/15


Help!! I just tried to install MyAlbum-P and it seemed to hose my main install! I can hit pages below in the index.php but if I try to to just go to my Home Page, I get these ugly messages (I have the system in Debug mode)...

Quote:

Fatal error: Call to undefined function: themefooter() in /homepages/37/d108553775/htdocs/home/footer.php on line 41
Warning [PHP]: main(/homepages/37/d108553775/htdocs/home/modules/home/include/read_configs.php): failed to open stream: No such file or directory in file header.php line 27
Warning [PHP]: main(): Failed opening '/homepages/37/d108553775/htdocs/home/modules/home/include/read_configs.php' for inclusion (include_path='.:/usr/local/lib/php') in file header.php line 27
Warning [PHP]: main(/homepages/37/d108553775/htdocs/home/modules/home/include/get_perms.php): failed to open stream: No such file or directory in file header.php line 28
Warning [PHP]: main(): Failed opening '/homepages/37/d108553775/htdocs/home/modules/home/include/get_perms.php' for inclusion (include_path='.:/usr/local/lib/php') in file header.php line 28
Warning [PHP]: main(/homepages/37/d108553775/htdocs/home/modules/home/include/functions.php): failed to open stream: No such file or directory in file header.php line 29
Warning [PHP]: main(): Failed opening '/homepages/37/d108553775/htdocs/home/modules/home/include/functions.php' for inclusion (include_path='.:/usr/local/lib/php') in file header.php line 29
Warning [PHP]: main(/homepages/37/d108553775/htdocs/home/modules/home/include/draw_functions.php): failed to open stream: No such file or directory in file header.php line 30
Warning [PHP]: main(): Failed opening '/homepages/37/d108553775/htdocs/home/modules/home/include/draw_functions.php' for inclusion (include_path='.:/usr/local/lib/php') in file header.php line 30
Notice [PHP]: Undefined index: theme_use_smarty in file footer.php line 31
Notice [PHP]: Undefined variable: xoopsConfigMetaFooter in file footer.php line 33


I tried backtracking through the files and can't see anything obvious and checked my mainfiles.php and it looks right.

Please help!! Is there a database value that got changed or a configuration setting I can check? It looks like for some reason it wants to consider my modules directory as the home directory.

David




TopTop
« 1 2 3 4 (5)



Login

Who's Online

168 user(s) are online (85 user(s) are browsing Support Forums)


Members: 0


Guests: 168


more...

Donat-O-Meter

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

Latest GitHub Commits