1
BentFX
Re: login/account control line?
  • 2008/1/11 22:35

  • BentFX

  • Just popping in

  • Posts: 9

  • Since: 2007/12/26


Thanks for the link 3lr0n.

I also found what I think is the best resource... turn on smarty debugging in Preferences->General Settings. It's way good



2
BentFX
Re: homepage content block
  • 2008/1/4 20:54

  • BentFX

  • Just popping in

  • Posts: 9

  • Since: 2007/12/26


Thanks for all the input ScriptFu!

Without talking it out here I don't think we'd have come onto the answer...

Simply wrap the content portion of theme.html in...
<{if $xoops_contents}>
code here
<{/if}>


That supresses the contents block on any page that doesn't have it's own content.

Problem solved!!!

Thanks again for you timely responses, and effort!

Skip

[edit]
changed 'custom content' to 'its own content'
better verbology
[/edit]



3
BentFX
Re: homepage content block
  • 2008/1/4 9:52

  • BentFX

  • Just popping in

  • Posts: 9

  • Since: 2007/12/26


Yeah, I'm with you all the way there. I understand about using blocks administration.

My issue is about my theme, and the empty brackets under that "Site name / Slogan for your site" block.

In the theme.html there is code which adds title and content for each page... news, forum, etc.

The other pages all look fine in my theme. But given how the theme displays blocks, that block looks out of place... it has no content!

I can and will add blocks to the main page, yet that block will still be there, unless I script a way to hide it in theme.html.

Again thanks for the quick reply, and for your input.

Yet my problem remains... the "Site name / Slogan for your site" block is visually distracting. Because it is a block with no content!



4
BentFX
Re: login/account control line?
  • 2008/1/4 9:21

  • BentFX

  • Just popping in

  • Posts: 9

  • Since: 2007/12/26


YAHHH!!!!

$xoops_isadmin works too!!!



5
BentFX
Re: login/account control line?
  • 2008/1/4 9:17

  • BentFX

  • Just popping in

  • Posts: 9

  • Since: 2007/12/26


Thanks Greatly!!!

Works like a champ. And, seeing as how my site has only english content, multilingual navigation controls are silly anyway.



6
BentFX
Re: homepage content block
  • 2008/1/4 9:08

  • BentFX

  • Just popping in

  • Posts: 9

  • Since: 2007/12/26


Thanks for the quick reply...

So I assume that in order to remove that empty block I must set another module as the home page?

It would be no big thing, except the theme I've just written makes it very obvious that block is EMPTY!



7
BentFX
homepage content block
  • 2008/1/4 8:42

  • BentFX

  • Just popping in

  • Posts: 9

  • Since: 2007/12/26


Can I add content to the default content block on the homepage. By default it has the Site name / Slogan for your site as set in general preferences. I simply want to add static content to that block, not install more modules, or create custom blocks.

Yes or No... can it be done?



8
BentFX
login/account control line?
  • 2008/1/4 0:06

  • BentFX

  • Just popping in

  • Posts: 9

  • Since: 2007/12/26


I'm working on a theme and I want to have a single line in the header that either has a username/password form if the user is not logged in, or links to the users account info if they are logged in.

This is what I've got...
<{if $xxsomethingxx}>
  <
form action="user.php" method="post">
    <{
$lang_username}>:&nbsp;<input type="text" name="uname" size="13" maxlength="12" value="<{$usercookie}>">&nbsp;
    <{
$lang_password}>:&nbsp;<input type="password" name="pass" size="10" maxlength="32">
    <
input type="hidden" name="op" value="login">
    <
input type="submit" value="<{$lang_login}>">
  </
form>
<{else}>
<!-- 
links to user account controls -->
<{/if}>


the if/else/endif works fine, except I don't know what variable to test against to see if the user is logged in.

Also I don't know how to access $lang_username & $lang_password from outside of the login template... Someone help me out? :pitiful:

I'm sure this has been discussed, but I couldn't find an answer in the search.

Thanks in advance.

BFX



9
BentFX
newBB NetPBM ImageMagicK Win32 install
  • 2007/12/26 15:16

  • BentFX

  • Just popping in

  • Posts: 9

  • Since: 2007/12/26


I just got finished fighting with this, and here is what I learned...

First!!! NetPBM and ImageMagicK are optional. They will not be used, or shown as available if 'Select the Image library to use' in newBB preferences, is set to something else.

Second, Under Windows the paths entered in the newBB preferences can not contain spaces. If NetPBM, or ImageMagicK have been installed under 'C:\Program Files\' use 'C:/progra~1/' in the path.

Which brings up the last point... Use forward slashes in the path.

I did default installs of recent netpbm and imagemagick win32 binaries. The paths that worked for me were...
C:/Progra~1/ImageMagick-6.3.7-Q16/
and...
C:/Progra~1/GnuWin32/bin/

Now, can someone knowledgeable please tell me how each, including GD2 rate for speed, memory footprint, image quality, etc.

Thanks in advance


For google sake I better go ahead and say... configure setup forum and
NetPBM not available
ImageMagicK not available

[edit]
I know this has been dealt with before. Yet in other posts the answers were not immediately apparent. They were either dealing with *nix servers, or the right answer was nestled among 5 other 'Try this..' posts. Hopefully search engines will pick this up, and it'll never be an issue again.
[/edit]




TopTop



Login

Who's Online

147 user(s) are online (109 user(s) are browsing Support Forums)


Members: 0


Guests: 147


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