31
GadgetMn
Re: HELP: Broken Site. Please read for errors
  • 2004/1/7 18:21

  • GadgetMn

  • Just popping in

  • Posts: 55

  • Since: 2003/7/15


All,

The theme issue seems to be a red herring. I have just loaded it on to my dev XOOPS instance and it works as expected. You can log in to the dev site, which is on the same server in a folder at the same level as the live site and it all works fine. However the live site still fails.

Also just realised that this is a hosted server (nor is it Win2K), not my own, so I am just checking with them now.

The live site is athttp://partners.insightexec.com/
The dev site is athttp://partners.insightexec.com/dev/

Cheers,

GadgetMn



32
GadgetMn
Re: HELP: Broken Site. Please read for errors
  • 2004/1/7 18:05

  • GadgetMn

  • Just popping in

  • Posts: 55

  • Since: 2003/7/15


Guys,

Thanks for your help so far. However changing the themes back to default has not helped in anyway.

I have now examined the line numbers in the Smarty.class.php.

The errors related to the following:

1042: Error trigger routine
1575: Writes the compiled template
1158: has something to do with the smarty_compile_path

This line in the output is concerning me:

Warning: Failed opening '/default^theme.html' for inclusion (include_path='.:/usr/local/php-4.2.2/share/pear')

Where did the ^ come from and the path stated in the include_path= does not exist. This is a Win2K server and this has never cropped up before.

Cheers,

GadgetMn



33
GadgetMn
Re: HELP: Broken Site. Please read for errors
  • 2004/1/7 17:43

  • GadgetMn

  • Just popping in

  • Posts: 55

  • Since: 2003/7/15


Herko,

I have now replaced the image path with the <{$xoops_imageurl}>. Still no joy

I cannot even log in to the site by going directly to user.php is there a back door to the admin so I can at least try and change the theme.

I can use phpMyAdmin if that's any help.

GadgetMn



34
GadgetMn
Re: HELP: Broken Site. Please read for errors
  • 2004/1/7 17:33

  • GadgetMn

  • Just popping in

  • Posts: 55

  • Since: 2003/7/15


Herko,

It's my own dedicated server and is not touched by the host. I'll check the image issue as you suggest.

Cheers,

Roy



35
GadgetMn
HELP: Broken Site. Please read for errors
  • 2004/1/7 14:02

  • GadgetMn

  • Just popping in

  • Posts: 55

  • Since: 2003/7/15


Can anyone tell me what would cause this

Quote:
Warning: Smarty error: problem writing temporary file '//3ffc130ddcaaf' in /data/sites/www.partners.insightexec.com/live/class/smarty/Smarty.class.php on line 1042

Warning: open_basedir restriction in effect. File is in wrong directory in /data/sites/www.partners.insightexec.com/live/class/smarty/Smarty.class.php on line 1575

Warning: open_basedir restriction in effect. File is in wrong directory in /data/sites/www.partners.insightexec.com/live/class/smarty/Smarty.class.php on line 1158

Warning: Failed opening '/default^theme.html' for inclusion (include_path='.:/usr/local/php-4.2.2/share/pear') in /data/sites/www.partners.insightexec.com/live/class/smarty/Smarty.class.php on line 1158


I made a simple modification to my theme to include the following:

Quote:
<table width="200" cellspacing="0" cellpadding="0" border=0>
<tr>
<td align="right" class="register" width="200">
<img src="/themes/insightexec/spacer.gif" width="200" height="5" border="0"><br><{if $xoops_isuser}>
<img src="/themes/insightexec/red_line.gif" width="43" height="8"><A HREF="/user.php" class="register"><{$xoops_uname}></a><{else}>
<img src="/themes/insightexec/red_line.gif" width="43" height="8">Visitor <A HREF="/register.php" class="register">Register Now</a><{/if}>
<br>&nbsp;
</td>
</tr>
</table>





36
GadgetMn
Re: How to change textual Block Title into Images ?
  • 2004/1/6 23:05

  • GadgetMn

  • Just popping in

  • Posts: 55

  • Since: 2003/7/15


Hsalazar,

I like this, and why stop there. If you took this further, a "displayed" block could simply be an instance of a block class.

In the Admin->Blocks section you could configure the attributes of the instance. If deliverd in this way, this would allow block re-use as you would only be instantiating an instance of the block rather than the block itself, all controlled from the admin system.

Cheers,

GadgetMn



37
GadgetMn
Re: How to change textual Block Title into Images ?
  • 2004/1/6 9:09

  • GadgetMn

  • Just popping in

  • Posts: 55

  • Since: 2003/7/15


Shivaji,

I agree with studioC. In this exmple below I have simply changed the first <div> in the theme_blockleft.html in the Default theme.

The original code is:

Quote:
<div class="blockTitle"><{$block.title}></div>
<div class="blockContent"><{$block.content}></div>


Simlpy replace the first <div> giving you:

Quote:
<img src="/images/<{$block.title}>.gif" width="xxx" height="xx" alt="<{$block.title}>"/>
<div class="blockContent"><{$block.content}></div>


This simple solution is also MultiLingual as you just need to provide images with the same name as the block title in all languages.

the only place where this falls over is where the title contains information picked up from a variable or profile. For that I suggest you simply re-organise the block so that the title can be an image and the variable is presented somewhere in the block itself.

Not sure if this is perfect, but it will work in most instances.

Cheers,

GandgetMn



38
GadgetMn
Re: Extending the user table
  • 2004/1/4 22:42

  • GadgetMn

  • Just popping in

  • Posts: 55

  • Since: 2003/7/15


Roberkras,

Thanks for the links and the "simple" solution. I do not need any of the IM fields so I can rename one to Membership No and then turn the rest off in the templates.

Let's hope the dynamic user fields appear in 2.1

Cheers,

GadgetMn



39
GadgetMn
Extending the user table
  • 2004/1/4 22:06

  • GadgetMn

  • Just popping in

  • Posts: 55

  • Since: 2003/7/15


I need to store a membership number along with a users account. This means modifying the registration template and the registration code, and extending the user table.

Is there a correct way to do this? If not, has anyone done this in a way that protects you when upgrades come along?

Cheers,

GadgetMn



40
GadgetMn
Personal Home Page Module
  • 2004/1/3 20:25

  • GadgetMn

  • Just popping in

  • Posts: 55

  • Since: 2003/7/15


Here's an idea I've had. Not having got to grips with the internals of XOOPS yet I thought I'd run it by a few "experts" first before attempting to have a stab at developing it.

In theory it sounds relatively straightforward:

* Create a new module that you set as the start module
* Under administration the webmaster sets what blocks can be used on the personalised home page
* These blocks should also be restricted to the group permissions of the user - only see what they can access
* Add a "Configure Home Page" option to the User menu
* Present user with a page similar to the Blocks admin page, but restricted to blocks setup in administration
* Save information in a single table related by UID
* Blocks are presented to theme in the standard format so they can be displayed in any theme

For me the issues are: learning PHP (I have a ASP background) and learning XOOPS (internals and module dev process). I think this could be a great module and a good first submission to the community.

Can anyone help me?

Cheers,

GadgetMn




TopTop
« 1 2 3 (4) 5 6 »



Login

Who's Online

241 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 241


more...

Donat-O-Meter

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

Latest GitHub Commits